/*
 * Copyright (c) 2006-2022, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author        Notes
 * 2022-10-18     xu            First version
 */

#ifndef LV_CONF_H
#define LV_CONF_H

#include "rtconfig.h"

#define LV_HOR_RES_MAX 480
#define LV_VER_RES_MAX 272
#define LV_COLOR_DEPTH 16

#define LV_FONT_MONTSERRAT_12 1
#define LV_FONT_MONTSERRAT_16 1
// #define LV_USE_PERF_MONITOR 1
// #define LV_DISP_DEF_REFR_PERIOD         16
//  #define CONFIG_LV_LOG_LEVEL LV_LOG_LEVEL_TRACE

#define LV_VERSION_EQUAL(x, y, z) (x == LVGL_VERSION_MAJOR && y == LVGL_VERSION_MINOR && z == LVGL_VERSION_PATCH)

#if defined(PKG_LVGL_USING_DEMOS)
#define LV_USE_DEMO_WIDGETS 1
// #define LV_USE_DEMO_MUSIC 1
// #define LV_USE_DEMO_BENCHMARK 1
#endif

// #define LV_USE_LOG 1
// #define LV_LOG_LEVEL LV_LOG_LEVEL_INFO

#define LV_USE_PNG 1
#define LV_USE_FS_POSIX 1
#define LV_FS_POSIX_LETTER 'A'

#define LV_IMG_CACHE_DEF_SIZE 16

#define LV_USE_ANTI_TEARING 1

#endif
